package cn.jhc.transport.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import cn.jhc.transport.R;
import cn.jhc.transport.view.SenseView;

/**
 * Created by luyanfei on 16-2-28.
 */
public class EnvironmentFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_env, container,false);
        SenseView co2View = (SenseView) rootView.findViewById(R.id.sense_view);
        co2View.setLabel("CO2");
        co2View.setMaxValue(10000);
        co2View.setCurrentValue(0);
        return rootView;
    }
}
